<%--
    Document   : addcourse
    Created on : 2010-12-20, 19:44:55
    Author     : yiyang
--%>

<%@page contentType="text/html" pageEncoding="utf-8" import="java.util.*,course.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
 <%
        String cId=request.getParameter("c_id");
        session.setAttribute("cId",cId);
        %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>修改课程信息</title>
       
<style type="text/css">
<!--
.STYLE2 {
	font-size: xx-large
}
.STYLE3 {color: #FF0000}
-->
</style>
    </head>
<body bgcolor="#CCCCCC">

    <%
    Course c=new Course();
    //String cId=request.getParameter("c_id");
    ArrayList<Course> courses=c.findByCid(cId);    
    %>

<div align="center">
<table width="200" border="0" align="center" bordercolor="#000000" bgcolor="#FFFFFF">
  <tr>
    <td><img src="../images/rg.jpg" alt="" width="807" height="142" /></td>
  </tr>
  <tr>
    <td height="654" valign="top"><form id="form" name="form" method="post" action="change.jsp">
        <table width="785" border="1"  cellspacing="0" align="center">
        <tr>
          <td height="64" colspan="2"><div align="center"><span class="STYLE2">修改课程信息</span></div></td>
          </tr>
        <tr>
          <td height="25">课程名称</td>
          <td>
              <div align="left">
                  <input name="name" type="text" size="25" value="<%=courses.get(0).getCname()%>">
              </div>
              </td>
        </tr>
        <tr>
            <td><span class="STYLE3"></span>课程类别</td><td><div align="left"><%=courses.get(0).getCategory()%></div></td>
            <tr>
          <td><span class="STYLE3"></span>修改课程类别为</td>
          <td>
                <div align="left">
                  <select name="type" id="select">
                    <option value="计算机类" selected="selected">计算机类</option>
                    <option value="政治类">政治类</option>
                    <option value="外语类">外语类</option>
                    <option value="土木类">土木类</option>
                    <option value="医学类">医学类</option>
                    <option value="电子信息类">电子信息类</option>
                    <option value="教育类">教育类</option>
                    <option value="环境科学类">环境科学类</option>
                    <option value="生命科学类">生命科学类</option>
                    <option value="人文类">人文类</option>
                    <option value="社科类">社科类</option>
                  </select>
                </div>
              </td>
        </tr>
        <tr>
          <td height="134">课程简介</td>
          <td>
              <div align="left">
                  <textarea name="introduction" id="textarea" cols="80" rows="10" style="text-align: left"><%=courses.get(0).getIntroduction()%></textarea>
              </div>
             </td>
        </tr>
        <tr>
          <td>课程大纲</td>
          <td>
            <div align="left">
            <textarea name="teach_outline" id="textarea2" cols="80" rows="10"><%=courses.get(0).getTeachOutline()%></textarea>
            </div>
            </td>
        </tr>
        <tr>
          <td>教学计划</td>
          <td>
              <div align="left">
            <label>
              <textarea name="teach_plan" id="textarea4" cols="80" rows="10"><%=courses.get(0).getTeachPlan()%></textarea>

            </label>
              </div>
         </td>
        </tr>
        <tr>
          <td height="63" colspan="2">

              <div align="center">
                <input type="submit" name="button" id="button" value="提交" />
              　　　　　
              <input type="reset" name="button2" id="button2" value="取消" onclick="window.navigate('courseManage.jsp')"/>
              </div>

              </td>
          </tr>
      </table>
      </form> </td>

  </tr>
</table>
</div>

</body>
</html>
